import React from 'react'
import { Outlet,  useNavigate } from 'react-router-dom'
export default function Home() {
    const navigate = useNavigate();
    const toMusicHandle = () => {
        navigate("/main/home/music/?user=laoliu&id=001")
      }
      const toNewsHandle = () => {
        navigate("/main/home/news/?user=laoliu&id=001")
      }  
  return (
    <div>
    <h3>我是Home的内容</h3>
    <button onClick={toMusicHandle}>Music</button>
    <button onClick={toNewsHandle}>News</button>
    <Outlet />
  </div>
    
  )
}
